// Copyright (C) ustc9703
// All rights reserved.
// 
// Author : dengxinguo
// Date   : 2004-12-1

#ifndef __DISKBOX_H__
#define __DISKBOX_H__


#pragma once
#include <common\ui\combobox.h>

class CJoyDiskBox;

//##ModelId=44C4B5E301F6
class CJoyDiskBoxItem : public CJoyComboItem
{
protected:
	//##ModelId=44C4B5E30203
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44C4B5E30207
    CStringW    m_diskName;
	//##ModelId=44C4B5E3020B
    UINT        m_DiskId;
	

	//##ModelId=44C4B5E30213
    CJoyDiskBox* GetDiskBox()
    {
        return (CJoyDiskBox*)
            ((CJoyComboList*)m_listView)->GetComboBox();
    }
};

//##ModelId=44C4B5E30214
class CJoyDiskBox :
    public CJoyComboBox
{
protected:
	//##ModelId=44C4B5E30223
    virtual void CM_Draw(Graphics& graph);
	//##ModelId=44C4B5E30226
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
	//##ModelId=44C4B5E30233
    virtual void CM_SelItem(CJoyComboItem* item);
	//##ModelId=44C4B5E30236
	UINT        m_msgid;
	//##ModelId=44C4B5E30237
	HWND        m_parentwnd;
public:
	//##ModelId=44C4B5E30243
    Color   m_itemBackColor;
	//##ModelId=44C4B5E30248
    Color   m_itemTextColor;
	//##ModelId=44C4B5E30252
    Color   m_selTextColor;
	//##ModelId=44C4B5E30257
    Color   m_selBackColor;

	//##ModelId=44C4B5E3025C
    Color   m_frameColor;
	//##ModelId=44C4B5E30261
    int m_textMargin;

	//##ModelId=44C4B5E30262
    CJoyDiskBox(void);
	//##ModelId=44C4B5E30264
	CJoyDiskBox(HWND hwnd,UINT msgid);

	//##ModelId=44C4B5E30272
    virtual ~CJoyDiskBox(void);

	//##ModelId=44C4B5E30275
    CJoyDiskBoxItem* GetSelItem()
    {
        return (CJoyDiskBoxItem*)this->m_selItem;
    }
};

#endif  // __DiskBOX_H__
